import { apiRequest } from "../utils/request";

//查询分类列表
export function selectCateLst() {
  return apiRequest({
    url: `/selectCateLst.do`,
    method: "get",
  });
}
//会员商品列表
export function selectGoodsLst(data: any) {
  return apiRequest({
    url: `/selectGoodsLst.do`,
    method: "POST",
    data,
  });
}
//查询普通商品详情
export function selectShopGoldDetail(data: any) {
  return apiRequest({
    url: `/selectShopGoldDetail.do`,
    method: "POST",
    data,
  });
}

//商家详情
export function selectShopItem(data: any) {
  return apiRequest({
    url: `/selectShopItem.do`,
    method: "POST",
    data,
  });
}
//商家商品分组
export function selectShopGrouping(data: any) {
  return apiRequest({
    url: `/selectShopGrouping.do`,
    method: "POST",
    data,
  });
}
//获取商家商品
export function selectShopGoodListByShopId(data: any) {
  return apiRequest({
    url: `/selectShopGoodListByShopId.do`,
    method: "POST",
    data,
  });
}
//查询会员商品详情
export function selectGoldDetail(data: any) {
  return apiRequest({
    url: `/selectGoldDetail.do`,
    method: "POST",
    data,
  });
}
//今日好价
export function selectGoodsLstByType(data: any) {
  return apiRequest({
    url: `/selectGoodsLstByType.do`,
    method: "POST",
    data,
  });
}

//商品规格查询
export function selectGoodSpecs(data: any) {
  return apiRequest({
    url: `/selectGoodSpecs.do`,
    method: "POST",
    data,
  });
}

//创建订单
export function createOrder(data: any) {
  return apiRequest({
    url: `/createOrder.do`,
    method: "POST",
    data,
  });
}

//创建订单
export function userPayPswCheack(data: any) {
  return apiRequest({
    url: `/userPayPswCheack.do`,
    method: "POST",
    data,
  });
}
//余额支付
export function balancePay(data: any) {
  return apiRequest({
    url: `/balancePay.do`,
    method: "POST",
    data,
  });
}
// 查询订单列表
export function selectOrderLst(data: any) {
  return apiRequest({
    url: `/selectOrderLst.do`,
    method: "POST",
    data,
  });
}
// 根据订单号查询详情
export function selectOrderByOrderNo(data: any) {
  return apiRequest({
    url: `/selectOrderByOrderNo.do`,
    method: "POST",
    data,
  });
}

// 取消订单
export function cancelShopOrder(data: any) {
  return apiRequest({
    url: `/cancelOrder.do`,
    method: "POST",
    data,
  });
}
// 确认收货
export function confirmReceiptShop(data: any) {
  return apiRequest({
    url: `/confirmOrder.do`,
    method: "POST",
    data,
  });
}
// 删除订单
export function deleteShopOrder(data: any) {
  return apiRequest({
    url: `/deleteOrder.do`,
    method: "POST",
    data,
  });
}
// 添加购物车
export function addBuyCar(data: any) {
  return apiRequest({
    url: `/addBuyCar.do`,
    method: "POST",
    data,
  });
}
// 查询列表
export function selectBuyCarLst(data: any) {
  return apiRequest({
    url: `/selectBuyCarLst.do`,
    method: "POST",
    data,
  });
}
// 删除
export function deleteBuyCar(data: any) {
  return apiRequest({
    url: `/deleteBuyCar.do`,
    method: "POST",
    data,
  });
}
// 创建订单
export function createOrderbyCar(data: any) {
  return apiRequest({
    url: `/createOrderbyCar.do`,
    method: "POST",
    data,
  });
}
// 增加/减少数量
export function editBuyCarCount(data: any) {
  return apiRequest({
    url: `/editBuyCarCount.do`,
    method: "POST",
    data,
  });
}
// 购物车余额支付
export function buyCarbalancePay(data: any) {
  return apiRequest({
    url: `/buyCarbalancePay.do`,
    method: "POST",
    data,
  });
}
// VIP产品列表
export function getGoodsList(data: any) {
  return apiRequest({
    url: `/yc/getGoodsList.do`,
    method: "POST",
    data,
  });
}
// VIP商品详情
export function YCselectGoldDetail(data: any) {
  return apiRequest({
    url: `/yc/selectGoldDetail.do`,
    method: "POST",
    data,
  });
}
// VIP创建订单
export function YCcreateOrder(data: any) {
  return apiRequest({
    url: `/yc/createOrder.do`,
    method: "POST",
    data,
  });
}
// VIP订单列表
export function YCselectOrderLst(data: any) {
  return apiRequest({
    url: `/yc/selectOrderLst.do`,
    method: "POST",
    data,
  });
}
// VIP根据单号查询订单信息
export function YCselectOrderByOrderNo(data: any) {
  return apiRequest({
    url: `/yc/selectOrderByOrderNo.do`,
    method: "POST",
    data,
  });
}
// VIP确认收货
export function YCconfirmOrder(data: any) {
  return apiRequest({
    url: `/yc/confirmOrder.do`,
    method: "POST",
    data,
  });
}
// VIP取消订单
export function YCcancelOrder(data: any) {
  return apiRequest({
    url: `/yc/cancelOrder.do`,
    method: "POST",
    data,
  });
}
// 查询积分商品列表
export function clubGetPointGoodList(data: any) {
  return apiRequest({
    url: `/clubGetPointGoodList.do`,
    method: "POST",
    data,
  });
}
// 查询积分商品列表
export function clubgetPointOrderLst(data: any) {
  return apiRequest({
    url: `/clubgetPointOrderLst.do`,
    method: "POST",
    data,
  });
}
